 |
ALPHA-VISION® AbvBrowser: Global Events
|
Global Events
SUMMARY
It allows defining reactions of the system to certain events.
CONTENTS
- Introduction
- Calling up the program
- Event 'Accelerator'
- Event 'System'
- Event 'Dataobject'
Introduction
With the program reactions of the system to certain events are defined.
During runtime a defined event occurs --> the system reacts with a defined
action.
Calling up the program
It is done via the pull down menu 'File' of the 'AbvBrowser' and mouse click
to the item ‘Global events…'
A similar dialog window is opened:

For the version of the selected project any defined event is listed.
The first column shows the Event type, the following are possible:
| Typ |
Event |
Remark |
| D |
Dataobject |
An Event of that type is recognized in
subject to a data object related function.
|
| K |
Accelerator |
Definition of buttons or combination of
buttons which are recognized by the system as an 'event'.
|
| S |
System |
Available System-Events can be chosen via the
button
|
The second column refers to the Event type ‘K’, look there.
The third column lists the events the system should respond to.
The fourth column lists the action(s) the system will respond with to the
event.
Possible actions via the buttons
| Button |
Action |
| Ok |
Saves new/modified objects and closes the window. |
| Cancel |
Closes the window without saving any changes
(same as the "close window" button in the right upper corner)
|
| Add |
Adds a new Event.
(If an Event is marked, the newly created data record contains the
parameters of the marked one; without a previously marked
Event the record is empty.)
|
| Edit |
The marked Event is opened |
| Delete |
The marked Event is deleted |
Event 'Accelerator'
The following dialog window is opened:
Event
As event to respond to ‘Accelerator’ is defined.
Via the field ‘Key’ the wanted button is selected
Via the checkboxes you can define whether the selected button should be
recogniced as event in combination with the ‘Shift’= , ‘Ctrl’= , ‘Alt=,
or a sum of these buttons.
Enable
Via these fields additional conditions for triggering the event dependent
action(s) may be defined.
In the entry field ‘Function’ you may define a function that must be
achieved. (Return value unequal 0)
The entry field "Functionnumber (ControlAccess)" defines the Function number
the logged in user must have in his user profile that the defined action is
executed.
Execute
The field ‘Action’ defines the action(s) to be executed on occurance of
the Event.
It is possible to define several actions to be executed in series.
Note:
Actions are executed only if any below "Enable" defined conditions are achieved.
Event 'System'
The following dialog window is opened:
Event
As event to respond to ‘System’ is defined.
Via the field ‘Events’ the following System Events may be chosen:
- OnContextMenuPressed:
If in runtime a graphic object of a picture is clicked by the right mouse
button the ‘ContexMenü’ opens, except, for the Event
'OnRightMouseButtonPressed' an action is defined.
In the 'ContexMenü' any data objects bound to that graphic object are listed.
If any of the listed data objects is clicked with the right mouse button
the System Event 'OnContextMenuPressed' is recognized.
- OnCyclicSectionPrintOut:
This Event is recognized as soon as a ‘Cyclic Section Print Out’ is
initiated by the system.
Usually "PrintPage()" is defined as action for that Event.
- OnInitialEventPrintOut:
This Event is recognized on the first print out of Data Object Archives;
Precondition is, that the checkbox “Initial Event Printout’ of the tab
"Default" in the <project>.cfg file is ticked.
- OnRightMouseButtonPressed:
If in the runtime in a picture the right mouse button is pressed, it is
recognized as 'OnRightMouseButtonPressed' Event.
WARNING
An action defined for that Event excludes any action(s) defined for the
Event 'OnContextMenuPressed'
- OnShutdown:
This Event is recognized previous of a system shutdown.
- OnStartup:
This Event is recognized after the system has come up.
Enable
Via these fields additional conditions for triggering the event dependent
action(s) may be defined.
In the entry field ‘Function’ you may define a function that must be
achieved. (Return value unequal 0)
The entry field "Functionnumber (ControlAccess)" defines the Function number
the logged in user must have in his user profile that the defined action is
executed.
Execute
The field ‘Action’ defines the action(s) to be executed on occurance of
the Event.
It is possible to define several actions to be executed in series.
Note:
Actions are executed only if any below "Enable" defined conditions are achieved.
Event 'Dataobject'
The following dialog window is opened:
Event
As event to respond to ‘Dataobject’ is defined.
An Event of that type is recognized dependent on a data object related
function, i.e. if the value the function monitors changes.
Enable
Via these fields additional conditions for triggering the event dependent
action(s) may be defined.
In the entry field ‘Function’ you may define a function that must be
achieved. (Return value unequal 0)
The entry field "Functionnumber (ControlAccess)" defines the Function number
the logged in user must have in his user profile that the defined action is
executed.
Execute
The field ‘Action’ defines the action(s) to be executed on occurance of
the Event.
It is possible to define several actions to be executed in series.
Note:
Actions are executed only if any below "Enable" defined conditions are achieved.